*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

/* book */
.book h1{
    font-family: 'montserrat', sans-serif;
    text-align: center;
    text-transform: uppercase;
    color: #333322;
}

.book{
    width: 100%;
    padding: 20px 0;

}

.inner-width{
    width: 50%;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

.border{
    width: 150px;
    background: #333322;
    height: 5px;
    margin: 40px auto;
}

.book .gallery{
    /* Flexbox ，是因为它能够扩展和收缩 flex 容器内的元素，以最大限度地填充可用空间 弹性布局 */
    display: flex;
    justify-content: center;
    /* 换行，第一行在下方 */
    flex-wrap: wrap-reverse;
}

.book .image{
    flex: 25%;
    overflow: hidden;
    /* 鼠标放在元素上变成小手 */
    cursor: pointer;
}

.book .image img{
    width: 100%;
    height: 100%;
    transition: 0.4s;
}

.book .image:hover img{
    transform: scale(1.4) rotate(15deg);
}

@media screen and (max-width : 960px){
    .book .image{
        flex:  33.33%;
    }
    .inner-width{
        width: 50%;
    }
    .book .image{
        flex: 25%;
        overflow: hidden;
    }
    .book{
        height: 65vh;
    }
    
}

@media screen and (max-width : 768px){
    .book .image{
        flex:  50%;
    }
    .inner-width{
        width: 50%;
    }
    .book .image{
        flex: 25%;
        overflow: hidden;
    }
    .book{
        height: 60vh;
    } 

}

@media screen and (max-width : 480px){
    .book .image{
        flex:  100%;
    }
    .inner-width{
        width: 50%;
    }
    .book .image{
        flex: 25%;
        overflow: hidden;
    }
    .book{
        height: 45vh;
    } 
}

/* layout */
body{
    margin: 0px;
    padding: 0px;
    /* background-color: #f1f1f1; */
    background: linear-gradient(to right,#92B4F4 50%, #CFDEE7  50% );
}

.container{
    width: 100vw;
    height: 100%;
}

.book{
    width: 100vw;
    height: 100%;
}

.top{
    height: 11vh;
    width: 100%;
    background: rgb(132, 165, 207,0);
    margin-bottom: 5vh;
}

.two-btn{
    text-align: right;
    margin-top: 20px;
    margin-right: 10vw;
}

.two-btn input{
    margin-left: 20px;
    border:solid 1px transparent;
    background-color: rgb(255, 255, 255,0);
    border-color: black;
    border-radius: 10px;
    width: 100px;
    height: 50px;
    font-size: 20px;
    color: black;
}

.two-btn input:focus{
    outline: none;
} 
.two-btn input:hover{
    position: relative;
    bottom: 1px;
    right: 1px;
}

@media screen and (max-width: 600px) { /*当屏幕尺寸小于600px时，应用下面的CSS样式*/
    .top{
        margin-top: 10px;
    }
    .top h1{
        font-size: 3rem;
    }
    .two-btn input{
        font-size: 1rem;
    }
  }

  @media screen and (max-width: 1024px) { /*当屏幕尺寸小于600px时，应用下面的CSS样式*/
    .top{
        margin-top: 10px;
    }
    .top h1{
        font-size: 3rem;
    }
    .two-btn input{
        font-size: 1rem;
    }
  }